package zlatan_demo11_foreach

object ClassDemo02 {
  def main(args: Array[String]): Unit = {
    val list1=List(1,2,3,4)
    list1.foreach(i=>println(i))
    println("*"*30)
    list1.foreach(println(_))
  }

}
